<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@page import="Models.Project.Project"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
	Project p = (Project) request.getAttribute("ProjectDetail");
	ArrayList<String> comments = (ArrayList<String>) request.getAttribute("AllComments");
%>
<h3>Project Name :</h3><br /><br />
<%=p.getProjectName() %><br /><br />
<h4>Project Description :</h4><br /><br />
<%=p.getProjectDescription() %><br /><br />
<h4>Project Category :</h4><br /><br />
<%=p.getProjectCategory() %><br /><br />

---------------------------------Comments-----------------------------------
<br /><br />
<%
	for(int i = 0 ; i < comments.size() ; i++){
		out.print(comments.get(i));
		out.print("<br />");
	}
%>
Comment :
<form action="ProjectController?projectaction=comment&pid=<%=p.getProjectId() %>" method="post">
	<textarea name="comment" ></textarea>
	<input type="submit" value="Post Comment" />
</form>

</body>
</html>